/*
 * Project: D-Link TR-069
 * 
 * File:   data.h
 * 
 * Authors: Taron Sargsyan <taronhsargsyan@gmail.com>		
 * 	    Suren Gharagyozyan	
 *
 * Created on September 20, 2011, 11:53 AM
 * 
 * 
 * This object is useful to create interface for ACS_Server e.g.
 * Initializing Database parameters,create and make socket with many CPE-s (tr069 clients)
 * 
 * Copyright (C) 2011 D-Link Company.  All rights reserved.
 */

#ifndef _SERVER_H_
#define _SERVER_H_

#define PORT 30006

char *iventCode;
int sock,findString;

int numsocks = 0;
int maxsocks = 10;

struct sockaddr_in clientname;
size_t size;

int read_from_client (int filedes);
void readeFile(char* buff,char* filename);

char* getResponseFile( char* head, char* xml ,int xmlLength );

#endif